package com.yingxin.yxerp.module.activiti.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yingxin.yxerp.module.activiti.biz.entity.UpdateDateApply;
import com.yingxin.yxerp.module.activiti.biz.vo.req.UpdateDateApplyQueryVo;
import com.yingxin.yxerp.module.activiti.biz.vo.resp.UpdateDateApplyRespVo;
import com.yingxin.yxerp.module.activiti.biz.vo.total.UpdateDateApplyDepartmentTotalRespVo;
import com.yingxin.yxerp.module.activiti.biz.vo.total.UpdateDateApplyPersonalTotalRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 编辑申请 Mapper 接口
 * @author yuebao
 * @since 2023-05-22
 */

public interface UpdateDateApplyMapper extends BaseMapper<UpdateDateApply> {

    /**
     * 分页查询
     */
    IPage<UpdateDateApplyRespVo> pageVo(Page page, @Param("queryObj") UpdateDateApplyQueryVo queryObj);

    /**
     * 合计行
     */
    UpdateDateApplyRespVo total(@Param("queryObj") UpdateDateApplyQueryVo queryObj);

    /**
     * 查询全部
     */
    List<UpdateDateApplyRespVo> listVo(@Param("queryObj") UpdateDateApplyQueryVo queryObj);

    /**
     * 个人汇总
     */
    List<UpdateDateApplyPersonalTotalRespVo> personalTotalVo(@Param("queryObj") UpdateDateApplyQueryVo queryObj);

    /**
     * 部门汇总
     */
    List<UpdateDateApplyDepartmentTotalRespVo> departmentTotalVo(@Param("queryObj") UpdateDateApplyQueryVo queryObj);

    /**
     * 根据id查询
     */
    UpdateDateApplyRespVo getVo(@Param("id") String id);

    /**
     * 根据单据获取作废信息
     */
    List<UpdateDateApplyRespVo> getBillById(@Param("id") String id);

}
